package io.jpress.module.article;


import io.jpress.permission.PermissionBean;
import io.jpress.permission.PermissionBuilder;
import io.jpress.permission.PermissionTypes;
import io.jpress.web.AdminPermissionGroups;

import java.util.ArrayList;
import java.util.List;

/**
 * 自定义权限组
 *
 * @author michael yang (fuhai999@gmail.com)
 */
public class ArticlePermissions implements PermissionBuilder {

    public static final String MODIFY_ARTICLE_CATEGORY_DEPARTMENT = "modify_article_category_department";

    /**
     * 文章相关权限
     */
    private static List<PermissionBean> articlePermissions = new ArrayList<>();
    static {
        articlePermissions.add(new PermissionBean(MODIFY_ARTICLE_CATEGORY_DEPARTMENT, AdminPermissionGroups.DEFAULT_SENSITIVE,"修改文章分类部门信息", PermissionTypes.SENSITIVE,111));
    }


    @Override
    public List<PermissionBean> buildPermissions() {
        return articlePermissions;
    }
}
